{extend name="default/base_js" /}
{block name="title"}用户登录 - {:WSTConf('CONF.mallName')}{__block__}{/block}
{block name="css"}
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
<link href="__STYLE__/css/login.css?v={$v}" rel="stylesheet">
{/block}
{block name="header"}{/block}
{block name="main"}
	<input type="hidden" id="token" value='{:WSTConf("CONF.pwdModulusKey")}'/>
	<div class="wst-header wst-color">
    <div class="wst-nav">
		<ul class="headlf">
			<li class="drop-info">
			  <div>欢迎来到{:WSTMSubstr(WSTConf('CONF.mallName'),0,13)}<a href="{:Url('home/users/login')}" onclick="WST.currentUrl();">&nbsp;&nbsp;请&nbsp;登录</a></div>
			</li>
			<li class="spacer">|</li>
			<li class="drop-info">
			  <div><a href="{:Url('home/users/regist')}" onclick="WST.currentUrl();">免费注册</a></div>
			</li>
		</ul>
		<ul class="wst-icon">
		 <li class="wst-img-icon"></li><li class="wst-remind">欢迎登陆!</li>
	    </ul>
		<div class="wst-clear"></div>
	  </div>
	</div>
    <div class="wst-login-banner">
      <div class="wst-icon-banner">
      	<a href='{$Request.root.true}' title="{:WSTConf('CONF.mallName')}" >
    	<div class="img-banner" >
    		<img src="__RESOURCE_PATH__/{:WSTConf('CONF.mallLogo')}">
    	</div>
        </a>
    	<div class="wst-stript"></div>
    	<div class="wst-login-action">
    		<div class="wst-left">用户登录</div>
    		<div class="wst-right-action">
    		  <div class="action-box">
    			没有账号?<a class="wst-login-but wst-location" href="{:Url('home/users/regist')}" onclick="WST.currentUrl();">立即注册</a>
    		  </div>
    		</div>
    	</div>
       </div>
    </div>
    <?php  $adsRs = WSTAds('ads-login-user',1,31536000);?>
	<div class="wst-login-middle" {if isset($adsRs['adFile'])}style='background: url(__RESOURCE_PATH__/{$adsRs['adFile']}) no-repeat top center;'{/if}>
	<div class="wst-container">
	<div class="wst-login_l">
	 <div class="wst-login_r">
		<form method="post" autocomplete="off">
		<span class="wst-login-u">用户登录</span>
		<input type='hidden' id='typ' value='0' class='ipt'/>
			<div class="wst-item wst-item-box" style="margin-top: 20px;">
				<div for="loginname" class="login-img"></div>
				<input id="loginName" name="loginName" class="ipt wst-login-input-1"  tabindex="1" value="{$loginName}" autocomplete="off" type="text" data-rule="用户名: required;" data-msg-required="请填写用户名" data-tip="请输入用户名" placeholder="邮箱/用户名/手机号"/>
			</div>
			<div class="wst-item wst-item-box">
				<div for="loginname" class="password-img"></div>
				<input id="loginPwd" name="loginPwd" class="ipt wst-login-input-1" tabindex="2" autocomplete="off" type="password" data-rule="密码: required;" data-msg-required="请填写密码" data-tip="请输入密码" placeholder="密码"/>
			</div>
			<div class="wst-item wst-item-box">
				<div for="loginname" class="yanzheng-img"></div>
				<div class="wst-login-code-1">
					<input id="verifyCode" style="ime-mode:disabled" name="verifyCode"  class="ipt wst-login-codein-1" tabindex="6" autocomplete="off" maxlength="6" type="text" data-rule="验证码: required;" data-msg-required="请输入验证码" data-tip="请输入验证码" data-target="#verify"placeholder="验证码"/>
					<img id='verifyImg' class="wst-login-codeim-1" src="{:url('home/index/getVerify')}" onclick='javascript:WST.getVerify("#verifyImg")' style="width:125px;height:36px;border-top-right-radius:6px;border-bottom-right-radius:6px;float: left;"><span id="verify"></span>    	
				</div>
			</div>
			<table class="wst-table">
			<tr class="wst-login-tr">
				<td colspan="2" style="padding-left:0px;">
					<input id="rememberPwd" name="rememberPwd" class="ipt wst-login-ch" checked="checked" type="checkbox"/>
			     	<label>记住密码</label>                                      
					<label><a style="color:#b2b1b1;float:right;" href="{:Url('home/users/regist')}">&nbsp;免费注册</a></label>
					<label><a style="color:#b2b1b1;padding-left: 140px;float:right;" href="{:Url('home/Users/forgetPass')}">忘记密码? | </a></label>
				</td>
			</tr>
			</table>
			<div class="wst-item wst-item-box" style="border: 0;" >
				<div style="width:100%;height:32px;line-height:32px;float:left;"><a class="wst-login-but" href="javascript:void(0);" onclick='javascript:login()'>登录</a></div>
			</div>
			
		
		</form>
		{:hook('homeDocumentLogin')}
	 </div>
	</div>
	</div>
	<div class="wst-clear"></div>
	</div>
	<div class="wst-footer">
		<div class="wst-container">
		<div class="wst-footer-hp-ck3">
	        <div class="links">
	           {php}$navs = WSTNavigations(1);{/php}
	           {volist name="$navs" id='vo'}
	           <a href="{$vo['navUrl']}" {if $vo['isOpen']==1}target="_blank"{/if}>{$vo['navTitle']}</a>
	           {if $i< count($navs)}&nbsp;&nbsp;|&nbsp;&nbsp;{/if}
	           {/volist}
	        </div>
	        <div class="copyright">
	        {php}
	        	if(WSTConf('CONF.mallFooter')!=''){
	         		echo htmlspecialchars_decode(WSTConf('CONF.mallFooter'));
	        	}
	        {/php}
	      	{php}
				if(WSTConf('CONF.visitStatistics')!=''){
					echo htmlspecialchars_decode(WSTConf('CONF.visitStatistics'))."<br/>";
			    }
			{/php}
	        {if condition="WSTConf('CONF.mallLicense') eq ''"}
	        <div>
				Copyright©2019 Powered By <a target="_blank" href="http://www.wstmart.net">WSTMart</a>
			</div>
			{else/}
				<div id="wst-mallLicense" data='1' style="display:none;">Copyright©2019 Powered By <a target="_blank" href="http://www.wstmart.net">WSTMart</a></div>
	        {/if}
	        </div>
	    </div>
	    </div>
	  </div>
{/block}	  
{block name="js"}
    <script type="text/javascript" src="__STATIC__/js/rsa.js"></script>
	<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
	<script type='text/javascript' src='__STYLE__/js/login.js?v={$v}'></script>
	<script>
    $(document).keypress(function(e) { 
		if(e.which == 13) {  
			login();  
		} 
	}); 
	</script>
{/block}